package com.aggron.concurrency.examples.threadlocal;

/**
 * @author LR2SD
 * @description  线程上下文
 * @date 2018-06-10 17:26
 */
public class RequestHolder {
    public static final ThreadLocal<Long>  REQUEST_HOLDER=new ThreadLocal<Long>();

    public static void set(Long a){
        REQUEST_HOLDER.set(a);
    }
    public static Long get(){
        return REQUEST_HOLDER.get();
    }
    public static void remove(){
        REQUEST_HOLDER.remove();
    }
}
